package com.ruoyi.mdkt.service.impl;

import com.ruoyi.mdkt.entity.CourseStudent;
import com.ruoyi.mdkt.entity.Student;
import com.ruoyi.mdkt.mapper.CourseStudentMapper;
import com.ruoyi.mdkt.service.CourseStudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gwl
 * @since 2022-10-25
 */
@Service
public class CourseStudentServiceImpl extends ServiceImpl<CourseStudentMapper, CourseStudent> implements CourseStudentService {

    @Autowired
    private CourseStudentMapper courseStudentMapper;
    @Override
    public List<Student> getStudentInCourse(Long courseId) {
        return courseStudentMapper.getStudentInCourse(String.valueOf(courseId));
    }
}
